package main

import (
	"fmt"
	"os"
	"os/signal"
	"syscall"
	"wf-deploy-agent/agent"
)

func main() {
	fmt.Println("Agent starting...")
	agent.Run()
	fmt.Println("Agent started!")

	q := make(chan os.Signal)
	signal.Notify(q, os.Interrupt, os.Kill, syscall.SIGTERM)
	quit(q)
}

func quit(exitChan chan os.Signal) {
	select {
	case <-exitChan:
		os.Exit(1)
	}
}
